#include "search.cpp"

const std::string path_file = "./data/raw_html/raw.txt";
int main()
{
    // 进程测试
    ns_search::Searcher search;
    search.InitSearch(path_file);
    std::string query;
    std::string json_string;

    while (true)
    {
        std::cout << "请输入查找词：" << std::endl;
        std::getline(std::cin, query);

        search.Search(query, &json_string);
        std::cout << json_string << std::endl;
        json_string.clear();
    }
    return 0;
}
